#ifndef UTILS_H_
#define UTILS_H_

#include <sys/time.h>

static inline long getTimeMilis() {
	timeval v;
	gettimeofday(&v, 0);
	return v.tv_usec / 1000 + v.tv_sec * 1000;
}

#define MC(expr) assert((expr) == MPI_SUCCESS)

#endif /* UTILS_H_ */
